// models/category.go
package models

type Category struct {
	BaseModel
	Name        string    `gorm:"size:50;uniqueIndex;not null" json:"name"`
	Description string    `gorm:"type:text" json:"description"`
	Slug        string    `gorm:"size:100;uniqueIndex;not null" json:"slug"`
	Articles    []Article `json:"-"`
}
